const mutations = {
    setPolicy(state: State, res: any) {
        state.policy = res
    },
    changeNum(state: State, val: number) {
        state.num = val
    },
    setUser(state: any, res: any) {
        state.userInfo = res
        localStorage.setItem('userInfo', JSON.stringify(res));
    },
    setUserStatus(state: any, res: any) {
        state.userStatus = res;
    },
    setUserForInit(state: any) {
        state.userInfo = JSON.parse(localStorage.getItem('userInfo'));
    },
    setAllTips(state: any, allTips: any){
        state.allTips = allTips;
    }
}

export default mutations